<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Hello React</title>
</head>

<body>
    <!-- 根节点(容器节点) -->
    <div id="root"></div>
    <script>
        // 获取根节点(容器节点)
        const rootElement = document.getElementById('root')
        // 创建h1标签
        const element = document.createElement('h1')
        // 为h1标签添加文本内容
        element.textContent = 'Hello React'
        // 将h1标签追加到根节点(容器节点)
        rootElement.appendChild(element)
    </script>

</body>

</html>